package com.sluggard.security.manage.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sluggard.security.manage.model.entity.MenuEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单管理 Mapper 接口
 * </p>
 *
 * @author lizheng
 * @since 2024-04-28
 */
public interface MenuMapper extends BaseMapper<MenuEntity> {

    List<MenuEntity> getAllMenuNode(@Param("ew") QueryWrapper<MenuEntity> queryWrapper);

    List<MenuEntity> selectByParentId(Long id);
}
